<template>
	<el-config-provider :size="getGlobalComponentSize">
		<RouterView v-slot="{ Component }">
			<component :is="Component" />
		</RouterView>
	</el-config-provider>
</template>

<script setup lang="ts" name="app">
import { computed } from 'vue';
import other from '/@/utils/other';

// 获取全局组件大小
const getGlobalComponentSize = computed(() => {
	return other.globalComponentSize();
});
</script>
